<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link type="text/css" rel="stylesheet" href="{CSS_PATH}main.css">
<link type="text/css" rel="stylesheet" href="{CSS_PATH}my_nav.css">
    
<script type="text/javascript" src="{JS_PATH}jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.placeholder.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.SuperSlide.2.1.1.js" ></script>
<script type="text/javascript">
/**
 * url跳转
 */
function redirect(url) {
	if(url.indexOf('://') == -1 && url.substr(0, 1) != '/' && url.substr(0, 1) != '?') url = $('base').attr('href')+url;
	location.href = url;
}
</script>
</head>
<body>
<div class="index-bg">
    
    <!-- 头部公共 -->
    <div id="head">
        <div class="header wrap cl">
            <div class="logo"><img alt="" src="{IMG_PATH}banner.png" usemap="#planetmap"> 
                <MAP name="planetmap" id="planetmap">
                    <AREA href="{siteurl($siteid)}" shape="rect" coords="0,5,120,125" alt="">
                </MAP>
            </div>
            <div class="login">
                <form method="POST"action="?m=member&c=index&a=login">
                {if empty($_userid)}
                <label>{L('username')}：</label><input type="text" id="username" name="username" size="10" class="input-text">
                <label>{L('password', null, 'member')}：</label><input type="password" id="password" name="password" size="10" class="input-text">
                <label>{L('checkcode', null, 'member')}：</label><input type="text" id="code" name="code" size="8" class="input-text">{form::checkcode('code_img', '4', '14', 120, 26)}
                <input type="submit" name="dosubmit" id="dosubmit" class="input-button" value="{L('login')}">
                <input type="button" class="input-button" value="{L('register')}" onclick="redirect('{APP_PATH}index.php?m=member&c=index&a=register')">
                {else}
                    <label>{L('hellow', null, 'member')}，{$_nickname}</label>
                    &nbsp;&nbsp;
                    <A id="audit_content" href="?m=content&c=index&a=public_checkall" style="display: none;">审核内容</A>
                    &nbsp;&nbsp;
                    <input type="button" class="input-button" value="{L('logout', null, 'member')}" onclick='window.location.href = "?m=member&c=index&a=logout"'>
                {/if}
                </form>
            </div>
            <div class="search">
                <form id="searchForm" action="{APP_PATH}index.php" method="get" target="_blank">
                    <input type="hidden" name="m" value="search"/>
                    <input type="hidden" name="c" value="index"/>
                    <input type="hidden" name="a" value="init"/>
                    <input type="hidden" name="typeid" value="1" id="typeid"/>
                    <input type="hidden" name="siteid" value="{$siteid}" id="siteid"/>
                    <INPUT name="q" class="inp no" type="text" placeholder="请输入关键字" value="" /> 
                    <INPUT class="btn soso" id="button3" type="sbmit" onclick="$('#searchForm').submit()"/>
                </form>
            </div>
        </div>
        
        <!-- 导航栏 -->
        <div class="wrap cl" style="margin-top: 10px;">
            {pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
            <nav id="nav">    
            <UL>
                    <LI><A href="{siteurl($siteid)}">首页</A></LI>
                {loop $data $r}
                    <LI>
                        <A href="{$r[url]}">{$r[catname]}</A>
                        <ul>
                            {pc:content action="category" catid="$r['catid']" num="25" siteid="$siteid" order="listorder ASC" return="subcategory"}
                            {loop $subcategory $k}
                            <li><A href="{$k[url]}">{$k[catname]}</A></li>
                            {/loop}
                            {/pc}
                        </ul> 
                    </LI>
                {/loop}
                {if empty($_groupid) == false}
                <LI><A href="?m=content&c=index&a=lists&catid=51">部门动态</A></LI>
                {/if}
            </UL>
            </nav>
            {/pc}
        </div>
    </div>
